from rest_framework import viewsets
from .serializers import *

class CompanyViewSet(viewsets.ModelViewSet):
    queryset = Company.objects.all()
    serializer_class = CompanySerializer


class CustomerViewSet(viewsets.ModelViewSet):
    queryset = Customer.objects.all()
    serializer_class = CustomerSerializer


class DetailedRegistrationViewSet(viewsets.ModelViewSet):
    queryset = DetailedRegistration.objects.all()
    serializer_class = DetailedRegistrationSerializer


class SimpleRegistrationViewSet(viewsets.ModelViewSet):
    queryset = SimpleRegistration.objects.all()
    serializer_class = SimpleRegistrationSerializer


class UserAgentViewSet(viewsets.ModelViewSet):
    queryset = UserAgent.objects.all()
    serializer_class = UserAgentSerializer


